﻿Imports System.Data.SqlClient

Public Class UserBUS
    Public Shared Function LayTaiKhoan(ByVal _tenTK As String, ByVal _matkhau As String) As NguoiDungDTO
        If _tenTK = "" Or _matkhau = "" Then
            Dim loi As String = "Co Loi:\n"
            If _tenTK = "" Then
                loi += " Chua nhap ten tai khoan"
            End If
            If _matkhau = "" Then
                loi += " chua nhap mat khau"
            End If
            Throw New Exception(loi)
        End If
        Return UserDAO.LayTaiKhoan(_tenTK, _matkhau)
    End Function
End Class
